package com.example.lanqiaodemo1.JavaTest;

public class A {
    int a, b;

    public A() {

    }

    void changeNum(int a, int b) {
        int c;
        if (a > b) {
            this.a = b;
            this.b = a;
        } else {
            this.a = a;
            this.b = b;
        }
    }

    public static void main(String[] args) {
        A a = new A();
        a.changeNum(100, 200);
        System.out.println(a.a + " " + a.b);
    }


}
